package win.ganbo.softwareFive.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 
 *                       
 * @Version: 1.0
 * @Author: 甘波
 * @Date: 2016年11月16日下午12:51:37
 * @Email: ganbo@gyidragon.com
 *
 */
@Entity
@Table(name = "_user")
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue
    private long              id;
    private long              number;                        //学号
    private String            name;                          //姓名
    private String            sex;                           //性别
    private String            classAndMajor;                 //班级专业
    @Temporal(TemporalType.DATE)
    private Date              inSchoolTime;                  //入学时间
    @Temporal(TemporalType.DATE)
    private Date              outSchoolTime;                 //毕业时间
    private String            company;                       //现工作单位
    private String            workAddress;                   //工作地址
    private String            job;                           //职务/职称
    private String            officePhone;                   //办公室电话
    private String            telephone;                     //手机/移动电话
    private String            qqOrEmail;                     //qq或者Email

    private String            ip;                            //访问ip地址
    private Date              createTime       = new Date(); //创建时间

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getNumber() {
        return number;
    }

    public void setNumber(long number) {
        this.number = number;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getClassAndMajor() {
        return classAndMajor;
    }

    public void setClassAndMajor(String classAndMajor) {
        this.classAndMajor = classAndMajor;
    }

    public Date getInSchoolTime() {
        return inSchoolTime;
    }

    public void setInSchoolTime(Date inSchoolTime) {
        this.inSchoolTime = inSchoolTime;
    }

    public Date getOutSchoolTime() {
        return outSchoolTime;
    }

    public void setOutSchoolTime(Date outSchoolTime) {
        this.outSchoolTime = outSchoolTime;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getWorkAddress() {
        return workAddress;
    }

    public void setWorkAddress(String workAddress) {
        this.workAddress = workAddress;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getOfficePhone() {
        return officePhone;
    }

    public void setOfficePhone(String officePhone) {
        this.officePhone = officePhone;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getQqOrEmail() {
        return qqOrEmail;
    }

    public void setQqOrEmail(String qqOrEmail) {
        this.qqOrEmail = qqOrEmail;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "User [id=" + id + ", number=" + number + ", name=" + name + ", sex=" + sex
               + ", classAndMajor=" + classAndMajor + ", inSchoolTime=" + inSchoolTime
               + ", outSchoolTime=" + outSchoolTime + ", company=" + company + ", workAddress="
               + workAddress + ", job=" + job + ", officePhone=" + officePhone + ", telephone="
               + telephone + ", qqOrEmail=" + qqOrEmail + ", ip=" + ip + ", createTime="
               + createTime + "]";
    }

}
